package com.open.pay.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@TableName("t_pay")
public class PayEntity implements Serializable{

	private static final long serialVersionUID = -3171302043447758600L;

	/**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    
    /**
     * 支付流水号
     */
    @TableField(value = "pay_serial")
    private String paySerial;
    
    /**
     * 订单金额 单位分
     */
    @TableField(value = "pay_amount")
    private Long payAmount;
    
    
    /**
     * 支付账号
     */
    @TableField(value = "from_account")
    private String fromAccount;
    
    /**
     * 收款账号
     */
    @TableField(value = "to_account")
    private String toAccount;
    
    /**
     * 创建人
     */
    @TableField(value = "create_user")
    private Long createUser;
    
    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;
    
}
